const joi = require('joi')

const name = joi.string().required()
const alias = joi.string().alphanum().required()
const id = joi.number().integer().min(1).required()

exports.add_cate_schema = {
	body:{
		name,alias
	}
}

exports.delete_cate_schema = {
  params: {
    id,
  },
}

exports.get_cate_schema = {
  params: {
    id,
  },
}

// 校验规则对象 - 更新分类
exports.update_cate_schema = {
  body: {
    id,
    name,
    alias,
  },
}

